package com.zoe.app.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author zoe.Zhang
 * @date 2022/06/20
 * @description
 */
@Data
public class Car {
    @NotNull(message = "name不可为空")
    private String name;
    @NotNull(message = "color不可为空")
    private String color;
    @NotNull(message = "price不可为空")
    private BigDecimal price;
}
